package com.ives.launcher.view;

import com.ives.launcher.R;

import android.content.Context;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

/**
 * 自定义对按钮，和传统按钮不同，自定义点击动画
 * @author ives
 *
 */
public class MyButton extends ImageButton{
	Paint paint;
	public MyButton(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		init();
	}

	public MyButton(Context context, AttributeSet attrs) {
		this(context, attrs,0);
		
	}

	public MyButton(Context context) {
		this(context,null);
	}
	
	private void init(){
		paint = new Paint();
		setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				System.out.println("fuck you");
			}
		});
	}

	
	
}
